package com.design03_behavioral.pattern13_observer.example02;

/**
 * @ClassName 模拟买房摇号服务
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/6 21:32
 */
public class DrawHouseService {

    public String lots(String uId){
        if(uId.hashCode()%2==0){
            return "\"恭喜ID为: \" + uId + \" 的用户,在本次摇号中中qian !!";
        }else {
            return "很遗憾,ID为: " + uId + "的用户,您本次未中签!J";
        }
    }


}
